{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Importing PulP solver\n",
    "from pulp import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Demand points\n",
    "demand_points=['Port of Mersin','Port of Jebel Ali']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Mersin', 'Port of Jebel Ali']"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "demand_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Supply Points\n",
    "supply_points=['Port of Buenos Aires','Port of Newcastle','Port of Hedland','Port of Baku','Port of Mina Salman','Port of Ploce','Port of Santos','Port of Douala','Port of Montreal','Port of Vancouver','Port of Shanghai','Port of Alexandria','Port of Marseille','Port of Hamburg_Germany','Port of Tema','Port of Piraeus','Port of Budapest','Port of Reykjavik','Port of Jawaharlal Nehru','Port of Tanjung Priok','Port of Bandar Abbas','Port of Gioia Tauro','Port of Nagoya','Port of Aktau','Penang Port','Port of Manzanillo','Port of Belgrade','Port of Maputo','Port of Rotterdam','Port of Tauranga','Port of Lagos','Port of Oslo','Port of Salalah','Port of Gdansk','Port of Doha','Port of Constanta','Port of Vladivostok','Port of Novorossiysk','Port of St. Petersburg','Port of Bratislava','Port of Koper','Port of Durban','Port of Algeciras','Port of Gothenburg','Port of Basel','Port of Riga','Port of Mersin','Port of Odessa','Port of Jebel Ali','Port of Immingham','Port of New York','Port of Los Angeles','Port of Puerto Cabello']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Port of Buenos Aires',\n",
       " 'Port of Newcastle',\n",
       " 'Port of Hedland',\n",
       " 'Port of Baku',\n",
       " 'Port of Mina Salman',\n",
       " 'Port of Ploce',\n",
       " 'Port of Santos',\n",
       " 'Port of Douala',\n",
       " 'Port of Montreal',\n",
       " 'Port of Vancouver',\n",
       " 'Port of Shanghai',\n",
       " 'Port of Alexandria',\n",
       " 'Port of Marseille',\n",
       " 'Port of Hamburg_Germany',\n",
       " 'Port of Tema',\n",
       " 'Port of Piraeus',\n",
       " 'Port of Budapest',\n",
       " 'Port of Reykjavik',\n",
       " 'Port of Jawaharlal Nehru',\n",
       " 'Port of Tanjung Priok',\n",
       " 'Port of Bandar Abbas',\n",
       " 'Port of Gioia Tauro',\n",
       " 'Port of Nagoya',\n",
       " 'Port of Aktau',\n",
       " 'Penang Port',\n",
       " 'Port of Manzanillo',\n",
       " 'Port of Belgrade',\n",
       " 'Port of Maputo',\n",
       " 'Port of Rotterdam',\n",
       " 'Port of Tauranga',\n",
       " 'Port of Lagos',\n",
       " 'Port of Oslo',\n",
       " 'Port of Salalah',\n",
       " 'Port of Gdansk',\n",
       " 'Port of Doha',\n",
       " 'Port of Constanta',\n",
       " 'Port of Vladivostok',\n",
       " 'Port of Novorossiysk',\n",
       " 'Port of St. Petersburg',\n",
       " 'Port of Bratislava',\n",
       " 'Port of Koper',\n",
       " 'Port of Durban',\n",
       " 'Port of Algeciras',\n",
       " 'Port of Gothenburg',\n",
       " 'Port of Basel',\n",
       " 'Port of Riga',\n",
       " 'Port of Mersin',\n",
       " 'Port of Odessa',\n",
       " 'Port of Jebel Ali',\n",
       " 'Port of Immingham',\n",
       " 'Port of New York',\n",
       " 'Port of Los Angeles',\n",
       " 'Port of Puerto Cabello']"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "supply_points"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the distances\n",
    "distance = dict(zip(supply_points,[dict(zip(demand_points, [8606,9168])),\n",
    "dict(zip(demand_points, [10095,8290])),\n",
    "dict(zip(demand_points, [7584,5779])),\n",
    "dict(zip(demand_points, [2469,5390])),\n",
    "dict(zip(demand_points, [3831,327])),\n",
    "dict(zip(demand_points, [6961,4584])),\n",
    "dict(zip(demand_points, [7528,9407])),\n",
    "dict(zip(demand_points, [9537,8017])),\n",
    "dict(zip(demand_points, [6195,9470])),\n",
    "dict(zip(demand_points, [12320,10440])),\n",
    "dict(zip(demand_points, [8546,6627])),\n",
    "dict(zip(demand_points, [546,3396])),\n",
    "dict(zip(demand_points, [1806,5080])),\n",
    "dict(zip(demand_points, [4032,7306])),\n",
    "dict(zip(demand_points, [9928,8408])),\n",
    "dict(zip(demand_points, [6356,3980])),\n",
    "dict(zip(demand_points, [2028,5360])),\n",
    "dict(zip(demand_points, [10204,7697])),\n",
    "dict(zip(demand_points, [3720,1335])),\n",
    "dict(zip(demand_points, [6210,4405])),\n",
    "dict(zip(demand_points, [3520,173])),\n",
    "dict(zip(demand_points, [1091,4366])),\n",
    "dict(zip(demand_points, [9424,7505])),\n",
    "dict(zip(demand_points, [2174,5094])),\n",
    "dict(zip(demand_points, [5520,3601])),\n",
    "dict(zip(demand_points, [9516,12790])),\n",
    "dict(zip(demand_points, [1829,5162])),\n",
    "dict(zip(demand_points, [5872,4308])),\n",
    "dict(zip(demand_points, [3755,7029])),\n",
    "dict(zip(demand_points, [6015,9498])),\n",
    "dict(zip(demand_points, [5523,8316])),\n",
    "dict(zip(demand_points, [10049,7673])),\n",
    "dict(zip(demand_points, [2577,999])),\n",
    "dict(zip(demand_points, [4751,8025])),\n",
    "dict(zip(demand_points, [3763,187])),\n",
    "dict(zip(demand_points, [6876,4499])),\n",
    "dict(zip(demand_points, [9645,7727])),\n",
    "dict(zip(demand_points, [1552,4885])),\n",
    "dict(zip(demand_points, [5258,8532])),\n",
    "dict(zip(demand_points, [2130,5463])),\n",
    "dict(zip(demand_points, [9842,7366])),\n",
    "dict(zip(demand_points, [5530,4572])),\n",
    "dict(zip(demand_points, [2102,5377])),\n",
    "dict(zip(demand_points, [4299,7573])),\n",
    "dict(zip(demand_points, [3801,6667])),\n",
    "dict(zip(demand_points, [4994,8269])),\n",
    "dict(zip(demand_points, [0,3576])),\n",
    "dict(zip(demand_points, [1370,4703])),\n",
    "dict(zip(demand_points, [3576,0])),\n",
    "dict(zip(demand_points, [3804,7080])),\n",
    "dict(zip(demand_points, [5617,8918])),\n",
    "dict(zip(demand_points, [11024,11116])),\n",
    "dict(zip(demand_points, [12508,10116]))]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': {'Port of Mersin': 8606, 'Port of Jebel Ali': 9168},\n",
       " 'Port of Newcastle': {'Port of Mersin': 10095, 'Port of Jebel Ali': 8290},\n",
       " 'Port of Hedland': {'Port of Mersin': 7584, 'Port of Jebel Ali': 5779},\n",
       " 'Port of Baku': {'Port of Mersin': 2469, 'Port of Jebel Ali': 5390},\n",
       " 'Port of Mina Salman': {'Port of Mersin': 3831, 'Port of Jebel Ali': 327},\n",
       " 'Port of Ploce': {'Port of Mersin': 6961, 'Port of Jebel Ali': 4584},\n",
       " 'Port of Santos': {'Port of Mersin': 7528, 'Port of Jebel Ali': 9407},\n",
       " 'Port of Douala': {'Port of Mersin': 9537, 'Port of Jebel Ali': 8017},\n",
       " 'Port of Montreal': {'Port of Mersin': 6195, 'Port of Jebel Ali': 9470},\n",
       " 'Port of Vancouver': {'Port of Mersin': 12320, 'Port of Jebel Ali': 10440},\n",
       " 'Port of Shanghai': {'Port of Mersin': 8546, 'Port of Jebel Ali': 6627},\n",
       " 'Port of Alexandria': {'Port of Mersin': 546, 'Port of Jebel Ali': 3396},\n",
       " 'Port of Marseille': {'Port of Mersin': 1806, 'Port of Jebel Ali': 5080},\n",
       " 'Port of Hamburg_Germany': {'Port of Mersin': 4032,\n",
       "  'Port of Jebel Ali': 7306},\n",
       " 'Port of Tema': {'Port of Mersin': 9928, 'Port of Jebel Ali': 8408},\n",
       " 'Port of Piraeus': {'Port of Mersin': 6356, 'Port of Jebel Ali': 3980},\n",
       " 'Port of Budapest': {'Port of Mersin': 2028, 'Port of Jebel Ali': 5360},\n",
       " 'Port of Reykjavik': {'Port of Mersin': 10204, 'Port of Jebel Ali': 7697},\n",
       " 'Port of Jawaharlal Nehru': {'Port of Mersin': 3720,\n",
       "  'Port of Jebel Ali': 1335},\n",
       " 'Port of Tanjung Priok': {'Port of Mersin': 6210, 'Port of Jebel Ali': 4405},\n",
       " 'Port of Bandar Abbas': {'Port of Mersin': 3520, 'Port of Jebel Ali': 173},\n",
       " 'Port of Gioia Tauro': {'Port of Mersin': 1091, 'Port of Jebel Ali': 4366},\n",
       " 'Port of Nagoya': {'Port of Mersin': 9424, 'Port of Jebel Ali': 7505},\n",
       " 'Port of Aktau': {'Port of Mersin': 2174, 'Port of Jebel Ali': 5094},\n",
       " 'Penang Port': {'Port of Mersin': 5520, 'Port of Jebel Ali': 3601},\n",
       " 'Port of Manzanillo': {'Port of Mersin': 9516, 'Port of Jebel Ali': 12790},\n",
       " 'Port of Belgrade': {'Port of Mersin': 1829, 'Port of Jebel Ali': 5162},\n",
       " 'Port of Maputo': {'Port of Mersin': 5872, 'Port of Jebel Ali': 4308},\n",
       " 'Port of Rotterdam': {'Port of Mersin': 3755, 'Port of Jebel Ali': 7029},\n",
       " 'Port of Tauranga': {'Port of Mersin': 6015, 'Port of Jebel Ali': 9498},\n",
       " 'Port of Lagos': {'Port of Mersin': 5523, 'Port of Jebel Ali': 8316},\n",
       " 'Port of Oslo': {'Port of Mersin': 10049, 'Port of Jebel Ali': 7673},\n",
       " 'Port of Salalah': {'Port of Mersin': 2577, 'Port of Jebel Ali': 999},\n",
       " 'Port of Gdansk': {'Port of Mersin': 4751, 'Port of Jebel Ali': 8025},\n",
       " 'Port of Doha': {'Port of Mersin': 3763, 'Port of Jebel Ali': 187},\n",
       " 'Port of Constanta': {'Port of Mersin': 6876, 'Port of Jebel Ali': 4499},\n",
       " 'Port of Vladivostok': {'Port of Mersin': 9645, 'Port of Jebel Ali': 7727},\n",
       " 'Port of Novorossiysk': {'Port of Mersin': 1552, 'Port of Jebel Ali': 4885},\n",
       " 'Port of St. Petersburg': {'Port of Mersin': 5258, 'Port of Jebel Ali': 8532},\n",
       " 'Port of Bratislava': {'Port of Mersin': 2130, 'Port of Jebel Ali': 5463},\n",
       " 'Port of Koper': {'Port of Mersin': 9842, 'Port of Jebel Ali': 7366},\n",
       " 'Port of Durban': {'Port of Mersin': 5530, 'Port of Jebel Ali': 4572},\n",
       " 'Port of Algeciras': {'Port of Mersin': 2102, 'Port of Jebel Ali': 5377},\n",
       " 'Port of Gothenburg': {'Port of Mersin': 4299, 'Port of Jebel Ali': 7573},\n",
       " 'Port of Basel': {'Port of Mersin': 3801, 'Port of Jebel Ali': 6667},\n",
       " 'Port of Riga': {'Port of Mersin': 4994, 'Port of Jebel Ali': 8269},\n",
       " 'Port of Mersin': {'Port of Mersin': 0, 'Port of Jebel Ali': 3576},\n",
       " 'Port of Odessa': {'Port of Mersin': 1370, 'Port of Jebel Ali': 4703},\n",
       " 'Port of Jebel Ali': {'Port of Mersin': 3576, 'Port of Jebel Ali': 0},\n",
       " 'Port of Immingham': {'Port of Mersin': 3804, 'Port of Jebel Ali': 7080},\n",
       " 'Port of New York': {'Port of Mersin': 5617, 'Port of Jebel Ali': 8918},\n",
       " 'Port of Los Angeles': {'Port of Mersin': 11024, 'Port of Jebel Ali': 11116},\n",
       " 'Port of Puerto Cabello': {'Port of Mersin': 12508,\n",
       "  'Port of Jebel Ali': 10116}}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "distance"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Aluminium Demand\n",
    "aluminium_demand=dict(zip(demand_points, [275071343.7,316298748.3]))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Mersin': 275071343.7, 'Port of Jebel Ali': 316298748.3}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "aluminium_demand"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [],
   "source": [
    "#Inputing the Aluminium Supply\n",
    "aluminium_supply=dict(zip(supply_points, [1750418.373,1108486.991,5259760.632,152870.6086,5846232.525,583785.2387,2405044.613,286578.9516,7130120.719,2122464.834,267850261.2,1178963.884,2903970.469,2541200.847,159171.9705,662387.6583,7691376.454,56655403.55,5188197.412,137744624.1,1888157.9,28443.63952,724801.9126,1052630.169,1883968.768,110143.3931,380422.1379,8080791.105,964428.5326,1312543.345,71076.45981,5162036.898,1900360.293,148867.4242,2820733.861,1017712.828,7634624.871,3723801.549,3766639.035,1121081.872,351723.7786,2886609.143,1384623.344,533795.8943,105019.7955,5143227.069,237073.6777,299230.0617,26856798.65,0,\n",
    "0,0,557404.5143])) "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': 1750418.373,\n",
       " 'Port of Newcastle': 1108486.991,\n",
       " 'Port of Hedland': 5259760.632,\n",
       " 'Port of Baku': 152870.6086,\n",
       " 'Port of Mina Salman': 5846232.525,\n",
       " 'Port of Ploce': 583785.2387,\n",
       " 'Port of Santos': 2405044.613,\n",
       " 'Port of Douala': 286578.9516,\n",
       " 'Port of Montreal': 7130120.719,\n",
       " 'Port of Vancouver': 2122464.834,\n",
       " 'Port of Shanghai': 267850261.2,\n",
       " 'Port of Alexandria': 1178963.884,\n",
       " 'Port of Marseille': 2903970.469,\n",
       " 'Port of Hamburg_Germany': 2541200.847,\n",
       " 'Port of Tema': 159171.9705,\n",
       " 'Port of Piraeus': 662387.6583,\n",
       " 'Port of Budapest': 7691376.454,\n",
       " 'Port of Reykjavik': 56655403.55,\n",
       " 'Port of Jawaharlal Nehru': 5188197.412,\n",
       " 'Port of Tanjung Priok': 137744624.1,\n",
       " 'Port of Bandar Abbas': 1888157.9,\n",
       " 'Port of Gioia Tauro': 28443.63952,\n",
       " 'Port of Nagoya': 724801.9126,\n",
       " 'Port of Aktau': 1052630.169,\n",
       " 'Penang Port': 1883968.768,\n",
       " 'Port of Manzanillo': 110143.3931,\n",
       " 'Port of Belgrade': 380422.1379,\n",
       " 'Port of Maputo': 8080791.105,\n",
       " 'Port of Rotterdam': 964428.5326,\n",
       " 'Port of Tauranga': 1312543.345,\n",
       " 'Port of Lagos': 71076.45981,\n",
       " 'Port of Oslo': 5162036.898,\n",
       " 'Port of Salalah': 1900360.293,\n",
       " 'Port of Gdansk': 148867.4242,\n",
       " 'Port of Doha': 2820733.861,\n",
       " 'Port of Constanta': 1017712.828,\n",
       " 'Port of Vladivostok': 7634624.871,\n",
       " 'Port of Novorossiysk': 3723801.549,\n",
       " 'Port of St. Petersburg': 3766639.035,\n",
       " 'Port of Bratislava': 1121081.872,\n",
       " 'Port of Koper': 351723.7786,\n",
       " 'Port of Durban': 2886609.143,\n",
       " 'Port of Algeciras': 1384623.344,\n",
       " 'Port of Gothenburg': 533795.8943,\n",
       " 'Port of Basel': 105019.7955,\n",
       " 'Port of Riga': 5143227.069,\n",
       " 'Port of Mersin': 237073.6777,\n",
       " 'Port of Odessa': 299230.0617,\n",
       " 'Port of Jebel Ali': 26856798.65,\n",
       " 'Port of Immingham': 0,\n",
       " 'Port of New York': 0,\n",
       " 'Port of Los Angeles': 0,\n",
       " 'Port of Puerto Cabello': 557404.5143}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "aluminium_supply"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "prob = LpProblem(\"Transportation\", LpMinimize)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "None\n",
       "VARIABLES"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Set Problem Variables\n",
    "routes = [(i,j) for i in supply_points for j in demand_points]\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('Port of Buenos Aires', 'Port of Mersin'),\n",
       " ('Port of Buenos Aires', 'Port of Jebel Ali'),\n",
       " ('Port of Newcastle', 'Port of Mersin'),\n",
       " ('Port of Newcastle', 'Port of Jebel Ali'),\n",
       " ('Port of Hedland', 'Port of Mersin'),\n",
       " ('Port of Hedland', 'Port of Jebel Ali'),\n",
       " ('Port of Baku', 'Port of Mersin'),\n",
       " ('Port of Baku', 'Port of Jebel Ali'),\n",
       " ('Port of Mina Salman', 'Port of Mersin'),\n",
       " ('Port of Mina Salman', 'Port of Jebel Ali'),\n",
       " ('Port of Ploce', 'Port of Mersin'),\n",
       " ('Port of Ploce', 'Port of Jebel Ali'),\n",
       " ('Port of Santos', 'Port of Mersin'),\n",
       " ('Port of Santos', 'Port of Jebel Ali'),\n",
       " ('Port of Douala', 'Port of Mersin'),\n",
       " ('Port of Douala', 'Port of Jebel Ali'),\n",
       " ('Port of Montreal', 'Port of Mersin'),\n",
       " ('Port of Montreal', 'Port of Jebel Ali'),\n",
       " ('Port of Vancouver', 'Port of Mersin'),\n",
       " ('Port of Vancouver', 'Port of Jebel Ali'),\n",
       " ('Port of Shanghai', 'Port of Mersin'),\n",
       " ('Port of Shanghai', 'Port of Jebel Ali'),\n",
       " ('Port of Alexandria', 'Port of Mersin'),\n",
       " ('Port of Alexandria', 'Port of Jebel Ali'),\n",
       " ('Port of Marseille', 'Port of Mersin'),\n",
       " ('Port of Marseille', 'Port of Jebel Ali'),\n",
       " ('Port of Hamburg_Germany', 'Port of Mersin'),\n",
       " ('Port of Hamburg_Germany', 'Port of Jebel Ali'),\n",
       " ('Port of Tema', 'Port of Mersin'),\n",
       " ('Port of Tema', 'Port of Jebel Ali'),\n",
       " ('Port of Piraeus', 'Port of Mersin'),\n",
       " ('Port of Piraeus', 'Port of Jebel Ali'),\n",
       " ('Port of Budapest', 'Port of Mersin'),\n",
       " ('Port of Budapest', 'Port of Jebel Ali'),\n",
       " ('Port of Reykjavik', 'Port of Mersin'),\n",
       " ('Port of Reykjavik', 'Port of Jebel Ali'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Mersin'),\n",
       " ('Port of Jawaharlal Nehru', 'Port of Jebel Ali'),\n",
       " ('Port of Tanjung Priok', 'Port of Mersin'),\n",
       " ('Port of Tanjung Priok', 'Port of Jebel Ali'),\n",
       " ('Port of Bandar Abbas', 'Port of Mersin'),\n",
       " ('Port of Bandar Abbas', 'Port of Jebel Ali'),\n",
       " ('Port of Gioia Tauro', 'Port of Mersin'),\n",
       " ('Port of Gioia Tauro', 'Port of Jebel Ali'),\n",
       " ('Port of Nagoya', 'Port of Mersin'),\n",
       " ('Port of Nagoya', 'Port of Jebel Ali'),\n",
       " ('Port of Aktau', 'Port of Mersin'),\n",
       " ('Port of Aktau', 'Port of Jebel Ali'),\n",
       " ('Penang Port', 'Port of Mersin'),\n",
       " ('Penang Port', 'Port of Jebel Ali'),\n",
       " ('Port of Manzanillo', 'Port of Mersin'),\n",
       " ('Port of Manzanillo', 'Port of Jebel Ali'),\n",
       " ('Port of Belgrade', 'Port of Mersin'),\n",
       " ('Port of Belgrade', 'Port of Jebel Ali'),\n",
       " ('Port of Maputo', 'Port of Mersin'),\n",
       " ('Port of Maputo', 'Port of Jebel Ali'),\n",
       " ('Port of Rotterdam', 'Port of Mersin'),\n",
       " ('Port of Rotterdam', 'Port of Jebel Ali'),\n",
       " ('Port of Tauranga', 'Port of Mersin'),\n",
       " ('Port of Tauranga', 'Port of Jebel Ali'),\n",
       " ('Port of Lagos', 'Port of Mersin'),\n",
       " ('Port of Lagos', 'Port of Jebel Ali'),\n",
       " ('Port of Oslo', 'Port of Mersin'),\n",
       " ('Port of Oslo', 'Port of Jebel Ali'),\n",
       " ('Port of Salalah', 'Port of Mersin'),\n",
       " ('Port of Salalah', 'Port of Jebel Ali'),\n",
       " ('Port of Gdansk', 'Port of Mersin'),\n",
       " ('Port of Gdansk', 'Port of Jebel Ali'),\n",
       " ('Port of Doha', 'Port of Mersin'),\n",
       " ('Port of Doha', 'Port of Jebel Ali'),\n",
       " ('Port of Constanta', 'Port of Mersin'),\n",
       " ('Port of Constanta', 'Port of Jebel Ali'),\n",
       " ('Port of Vladivostok', 'Port of Mersin'),\n",
       " ('Port of Vladivostok', 'Port of Jebel Ali'),\n",
       " ('Port of Novorossiysk', 'Port of Mersin'),\n",
       " ('Port of Novorossiysk', 'Port of Jebel Ali'),\n",
       " ('Port of St. Petersburg', 'Port of Mersin'),\n",
       " ('Port of St. Petersburg', 'Port of Jebel Ali'),\n",
       " ('Port of Bratislava', 'Port of Mersin'),\n",
       " ('Port of Bratislava', 'Port of Jebel Ali'),\n",
       " ('Port of Koper', 'Port of Mersin'),\n",
       " ('Port of Koper', 'Port of Jebel Ali'),\n",
       " ('Port of Durban', 'Port of Mersin'),\n",
       " ('Port of Durban', 'Port of Jebel Ali'),\n",
       " ('Port of Algeciras', 'Port of Mersin'),\n",
       " ('Port of Algeciras', 'Port of Jebel Ali'),\n",
       " ('Port of Gothenburg', 'Port of Mersin'),\n",
       " ('Port of Gothenburg', 'Port of Jebel Ali'),\n",
       " ('Port of Basel', 'Port of Mersin'),\n",
       " ('Port of Basel', 'Port of Jebel Ali'),\n",
       " ('Port of Riga', 'Port of Mersin'),\n",
       " ('Port of Riga', 'Port of Jebel Ali'),\n",
       " ('Port of Mersin', 'Port of Mersin'),\n",
       " ('Port of Mersin', 'Port of Jebel Ali'),\n",
       " ('Port of Odessa', 'Port of Mersin'),\n",
       " ('Port of Odessa', 'Port of Jebel Ali'),\n",
       " ('Port of Jebel Ali', 'Port of Mersin'),\n",
       " ('Port of Jebel Ali', 'Port of Jebel Ali'),\n",
       " ('Port of Immingham', 'Port of Mersin'),\n",
       " ('Port of Immingham', 'Port of Jebel Ali'),\n",
       " ('Port of New York', 'Port of Mersin'),\n",
       " ('Port of New York', 'Port of Jebel Ali'),\n",
       " ('Port of Los Angeles', 'Port of Mersin'),\n",
       " ('Port of Los Angeles', 'Port of Jebel Ali'),\n",
       " ('Port of Puerto Cabello', 'Port of Mersin'),\n",
       " ('Port of Puerto Cabello', 'Port of Jebel Ali')]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "routes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Decision Variables\n",
    "X = LpVariable.dicts(\"ShipmentAmount\",(supply_points, demand_points),0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Port of Buenos Aires': {'Port of Mersin': ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali},\n",
       " 'Port of Newcastle': {'Port of Mersin': ShipmentAmount_Port_of_Newcastle_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali},\n",
       " 'Port of Hedland': {'Port of Mersin': ShipmentAmount_Port_of_Hedland_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali},\n",
       " 'Port of Baku': {'Port of Mersin': ShipmentAmount_Port_of_Baku_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali},\n",
       " 'Port of Mina Salman': {'Port of Mersin': ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali},\n",
       " 'Port of Ploce': {'Port of Mersin': ShipmentAmount_Port_of_Ploce_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali},\n",
       " 'Port of Santos': {'Port of Mersin': ShipmentAmount_Port_of_Santos_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali},\n",
       " 'Port of Douala': {'Port of Mersin': ShipmentAmount_Port_of_Douala_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali},\n",
       " 'Port of Montreal': {'Port of Mersin': ShipmentAmount_Port_of_Montreal_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali},\n",
       " 'Port of Vancouver': {'Port of Mersin': ShipmentAmount_Port_of_Vancouver_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali},\n",
       " 'Port of Shanghai': {'Port of Mersin': ShipmentAmount_Port_of_Shanghai_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali},\n",
       " 'Port of Alexandria': {'Port of Mersin': ShipmentAmount_Port_of_Alexandria_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali},\n",
       " 'Port of Marseille': {'Port of Mersin': ShipmentAmount_Port_of_Marseille_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali},\n",
       " 'Port of Hamburg_Germany': {'Port of Mersin': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali},\n",
       " 'Port of Tema': {'Port of Mersin': ShipmentAmount_Port_of_Tema_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali},\n",
       " 'Port of Piraeus': {'Port of Mersin': ShipmentAmount_Port_of_Piraeus_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali},\n",
       " 'Port of Budapest': {'Port of Mersin': ShipmentAmount_Port_of_Budapest_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali},\n",
       " 'Port of Reykjavik': {'Port of Mersin': ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali},\n",
       " 'Port of Jawaharlal Nehru': {'Port of Mersin': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali},\n",
       " 'Port of Tanjung Priok': {'Port of Mersin': ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali},\n",
       " 'Port of Bandar Abbas': {'Port of Mersin': ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali},\n",
       " 'Port of Gioia Tauro': {'Port of Mersin': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali},\n",
       " 'Port of Nagoya': {'Port of Mersin': ShipmentAmount_Port_of_Nagoya_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali},\n",
       " 'Port of Aktau': {'Port of Mersin': ShipmentAmount_Port_of_Aktau_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali},\n",
       " 'Penang Port': {'Port of Mersin': ShipmentAmount_Penang_Port_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Penang_Port_Port_of_Jebel_Ali},\n",
       " 'Port of Manzanillo': {'Port of Mersin': ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali},\n",
       " 'Port of Belgrade': {'Port of Mersin': ShipmentAmount_Port_of_Belgrade_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali},\n",
       " 'Port of Maputo': {'Port of Mersin': ShipmentAmount_Port_of_Maputo_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali},\n",
       " 'Port of Rotterdam': {'Port of Mersin': ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali},\n",
       " 'Port of Tauranga': {'Port of Mersin': ShipmentAmount_Port_of_Tauranga_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali},\n",
       " 'Port of Lagos': {'Port of Mersin': ShipmentAmount_Port_of_Lagos_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali},\n",
       " 'Port of Oslo': {'Port of Mersin': ShipmentAmount_Port_of_Oslo_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali},\n",
       " 'Port of Salalah': {'Port of Mersin': ShipmentAmount_Port_of_Salalah_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali},\n",
       " 'Port of Gdansk': {'Port of Mersin': ShipmentAmount_Port_of_Gdansk_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali},\n",
       " 'Port of Doha': {'Port of Mersin': ShipmentAmount_Port_of_Doha_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali},\n",
       " 'Port of Constanta': {'Port of Mersin': ShipmentAmount_Port_of_Constanta_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali},\n",
       " 'Port of Vladivostok': {'Port of Mersin': ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali},\n",
       " 'Port of Novorossiysk': {'Port of Mersin': ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali},\n",
       " 'Port of St. Petersburg': {'Port of Mersin': ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali},\n",
       " 'Port of Bratislava': {'Port of Mersin': ShipmentAmount_Port_of_Bratislava_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali},\n",
       " 'Port of Koper': {'Port of Mersin': ShipmentAmount_Port_of_Koper_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali},\n",
       " 'Port of Durban': {'Port of Mersin': ShipmentAmount_Port_of_Durban_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali},\n",
       " 'Port of Algeciras': {'Port of Mersin': ShipmentAmount_Port_of_Algeciras_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali},\n",
       " 'Port of Gothenburg': {'Port of Mersin': ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali},\n",
       " 'Port of Basel': {'Port of Mersin': ShipmentAmount_Port_of_Basel_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali},\n",
       " 'Port of Riga': {'Port of Mersin': ShipmentAmount_Port_of_Riga_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali},\n",
       " 'Port of Mersin': {'Port of Mersin': ShipmentAmount_Port_of_Mersin_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali},\n",
       " 'Port of Odessa': {'Port of Mersin': ShipmentAmount_Port_of_Odessa_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali},\n",
       " 'Port of Jebel Ali': {'Port of Mersin': ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali},\n",
       " 'Port of Immingham': {'Port of Mersin': ShipmentAmount_Port_of_Immingham_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali},\n",
       " 'Port of New York': {'Port of Mersin': ShipmentAmount_Port_of_New_York_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali},\n",
       " 'Port of Los Angeles': {'Port of Mersin': ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali},\n",
       " 'Port of Puerto Cabello': {'Port of Mersin': ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin,\n",
       "  'Port of Jebel Ali': ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali}}"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Objective Function\n",
    "prob += sum(X[i][j]*distance[i][j] for (i,j) in routes)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 5520*ShipmentAmount_Penang_Port_Port_of_Mersin + 5094*ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali + 2174*ShipmentAmount_Port_of_Aktau_Port_of_Mersin + 3396*ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali + 546*ShipmentAmount_Port_of_Alexandria_Port_of_Mersin + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 2102*ShipmentAmount_Port_of_Algeciras_Port_of_Mersin + 5390*ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali + 2469*ShipmentAmount_Port_of_Baku_Port_of_Mersin + 173*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali + 3520*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin + 6667*ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali + 3801*ShipmentAmount_Port_of_Basel_Port_of_Mersin + 5162*ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali + 1829*ShipmentAmount_Port_of_Belgrade_Port_of_Mersin + 5463*ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali + 2130*ShipmentAmount_Port_of_Bratislava_Port_of_Mersin + 5360*ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali + 2028*ShipmentAmount_Port_of_Budapest_Port_of_Mersin + 9168*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali + 8606*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin + 4499*ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali + 6876*ShipmentAmount_Port_of_Constanta_Port_of_Mersin + 187*ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali + 3763*ShipmentAmount_Port_of_Doha_Port_of_Mersin + 8017*ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali + 9537*ShipmentAmount_Port_of_Douala_Port_of_Mersin + 4572*ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali + 5530*ShipmentAmount_Port_of_Durban_Port_of_Mersin + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 4751*ShipmentAmount_Port_of_Gdansk_Port_of_Mersin + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 1091*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin + 7573*ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali + 4299*ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 4032*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin + 5779*ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali + 7584*ShipmentAmount_Port_of_Hedland_Port_of_Mersin + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 3804*ShipmentAmount_Port_of_Immingham_Port_of_Mersin + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 3720*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin + 3576*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin + 7366*ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali + 9842*ShipmentAmount_Port_of_Koper_Port_of_Mersin + 8316*ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali + 5523*ShipmentAmount_Port_of_Lagos_Port_of_Mersin + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11024*ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 9516*ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin + 4308*ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali + 5872*ShipmentAmount_Port_of_Maputo_Port_of_Mersin + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 1806*ShipmentAmount_Port_of_Marseille_Port_of_Mersin + 3576*ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali + 327*ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali + 3831*ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin + 9470*ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali + 6195*ShipmentAmount_Port_of_Montreal_Port_of_Mersin + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 9424*ShipmentAmount_Port_of_Nagoya_Port_of_Mersin + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 5617*ShipmentAmount_Port_of_New_York_Port_of_Mersin + 8290*ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali + 10095*ShipmentAmount_Port_of_Newcastle_Port_of_Mersin + 4885*ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali + 1552*ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin + 4703*ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali + 1370*ShipmentAmount_Port_of_Odessa_Port_of_Mersin + 7673*ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali + 10049*ShipmentAmount_Port_of_Oslo_Port_of_Mersin + 3980*ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali + 6356*ShipmentAmount_Port_of_Piraeus_Port_of_Mersin + 4584*ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali + 6961*ShipmentAmount_Port_of_Ploce_Port_of_Mersin + 10116*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali + 12508*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin + 7697*ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali + 10204*ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin + 8269*ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali + 4994*ShipmentAmount_Port_of_Riga_Port_of_Mersin + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 3755*ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin + 999*ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali + 2577*ShipmentAmount_Port_of_Salalah_Port_of_Mersin + 9407*ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali + 7528*ShipmentAmount_Port_of_Santos_Port_of_Mersin + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 8546*ShipmentAmount_Port_of_Shanghai_Port_of_Mersin + 8532*ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali + 5258*ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin + 4405*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali + 6210*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin + 9498*ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali + 6015*ShipmentAmount_Port_of_Tauranga_Port_of_Mersin + 8408*ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali + 9928*ShipmentAmount_Port_of_Tema_Port_of_Mersin + 10440*ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali + 12320*ShipmentAmount_Port_of_Vancouver_Port_of_Mersin + 7727*ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali + 9645*ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin + 0\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin Continuous"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 5520*ShipmentAmount_Penang_Port_Port_of_Mersin + 5094*ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali + 2174*ShipmentAmount_Port_of_Aktau_Port_of_Mersin + 3396*ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali + 546*ShipmentAmount_Port_of_Alexandria_Port_of_Mersin + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 2102*ShipmentAmount_Port_of_Algeciras_Port_of_Mersin + 5390*ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali + 2469*ShipmentAmount_Port_of_Baku_Port_of_Mersin + 173*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali + 3520*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin + 6667*ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali + 3801*ShipmentAmount_Port_of_Basel_Port_of_Mersin + 5162*ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali + 1829*ShipmentAmount_Port_of_Belgrade_Port_of_Mersin + 5463*ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali + 2130*ShipmentAmount_Port_of_Bratislava_Port_of_Mersin + 5360*ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali + 2028*ShipmentAmount_Port_of_Budapest_Port_of_Mersin + 9168*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali + 8606*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin + 4499*ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali + 6876*ShipmentAmount_Port_of_Constanta_Port_of_Mersin + 187*ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali + 3763*ShipmentAmount_Port_of_Doha_Port_of_Mersin + 8017*ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali + 9537*ShipmentAmount_Port_of_Douala_Port_of_Mersin + 4572*ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali + 5530*ShipmentAmount_Port_of_Durban_Port_of_Mersin + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 4751*ShipmentAmount_Port_of_Gdansk_Port_of_Mersin + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 1091*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin + 7573*ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali + 4299*ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 4032*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin + 5779*ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali + 7584*ShipmentAmount_Port_of_Hedland_Port_of_Mersin + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 3804*ShipmentAmount_Port_of_Immingham_Port_of_Mersin + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 3720*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin + 3576*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin + 7366*ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali + 9842*ShipmentAmount_Port_of_Koper_Port_of_Mersin + 8316*ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali + 5523*ShipmentAmount_Port_of_Lagos_Port_of_Mersin + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11024*ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 9516*ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin + 4308*ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali + 5872*ShipmentAmount_Port_of_Maputo_Port_of_Mersin + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 1806*ShipmentAmount_Port_of_Marseille_Port_of_Mersin + 3576*ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali + 327*ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali + 3831*ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin + 9470*ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali + 6195*ShipmentAmount_Port_of_Montreal_Port_of_Mersin + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 9424*ShipmentAmount_Port_of_Nagoya_Port_of_Mersin + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 5617*ShipmentAmount_Port_of_New_York_Port_of_Mersin + 8290*ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali + 10095*ShipmentAmount_Port_of_Newcastle_Port_of_Mersin + 4885*ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali + 1552*ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin + 4703*ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali + 1370*ShipmentAmount_Port_of_Odessa_Port_of_Mersin + 7673*ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali + 10049*ShipmentAmount_Port_of_Oslo_Port_of_Mersin + 3980*ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali + 6356*ShipmentAmount_Port_of_Piraeus_Port_of_Mersin + 4584*ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali + 6961*ShipmentAmount_Port_of_Ploce_Port_of_Mersin + 10116*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali + 12508*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin + 7697*ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali + 10204*ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin + 8269*ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali + 4994*ShipmentAmount_Port_of_Riga_Port_of_Mersin + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 3755*ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin + 999*ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali + 2577*ShipmentAmount_Port_of_Salalah_Port_of_Mersin + 9407*ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali + 7528*ShipmentAmount_Port_of_Santos_Port_of_Mersin + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 8546*ShipmentAmount_Port_of_Shanghai_Port_of_Mersin + 8532*ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali + 5258*ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin + 4405*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali + 6210*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin + 9498*ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali + 6015*ShipmentAmount_Port_of_Tauranga_Port_of_Mersin + 8408*ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali + 9928*ShipmentAmount_Port_of_Tema_Port_of_Mersin + 10440*ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali + 12320*ShipmentAmount_Port_of_Vancouver_Port_of_Mersin + 7727*ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali + 9645*ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin + 0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Penang_Port_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin >= 275071343.7\n",
       "\n",
       "_C2: ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali >= 316298748.3\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin Continuous"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for j in demand_points:\n",
    "    prob += sum(X[i][j] for i in supply_points) >= aluminium_demand[j]\n",
    "    \n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Transportation:\n",
       "MINIMIZE\n",
       "3601*ShipmentAmount_Penang_Port_Port_of_Jebel_Ali + 5520*ShipmentAmount_Penang_Port_Port_of_Mersin + 5094*ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali + 2174*ShipmentAmount_Port_of_Aktau_Port_of_Mersin + 3396*ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali + 546*ShipmentAmount_Port_of_Alexandria_Port_of_Mersin + 5377*ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali + 2102*ShipmentAmount_Port_of_Algeciras_Port_of_Mersin + 5390*ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali + 2469*ShipmentAmount_Port_of_Baku_Port_of_Mersin + 173*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali + 3520*ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin + 6667*ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali + 3801*ShipmentAmount_Port_of_Basel_Port_of_Mersin + 5162*ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali + 1829*ShipmentAmount_Port_of_Belgrade_Port_of_Mersin + 5463*ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali + 2130*ShipmentAmount_Port_of_Bratislava_Port_of_Mersin + 5360*ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali + 2028*ShipmentAmount_Port_of_Budapest_Port_of_Mersin + 9168*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali + 8606*ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin + 4499*ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali + 6876*ShipmentAmount_Port_of_Constanta_Port_of_Mersin + 187*ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali + 3763*ShipmentAmount_Port_of_Doha_Port_of_Mersin + 8017*ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali + 9537*ShipmentAmount_Port_of_Douala_Port_of_Mersin + 4572*ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali + 5530*ShipmentAmount_Port_of_Durban_Port_of_Mersin + 8025*ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali + 4751*ShipmentAmount_Port_of_Gdansk_Port_of_Mersin + 4366*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali + 1091*ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin + 7573*ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali + 4299*ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin + 7306*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali + 4032*ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin + 5779*ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali + 7584*ShipmentAmount_Port_of_Hedland_Port_of_Mersin + 7080*ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali + 3804*ShipmentAmount_Port_of_Immingham_Port_of_Mersin + 1335*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali + 3720*ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin + 3576*ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin + 7366*ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali + 9842*ShipmentAmount_Port_of_Koper_Port_of_Mersin + 8316*ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali + 5523*ShipmentAmount_Port_of_Lagos_Port_of_Mersin + 11116*ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali + 11024*ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin + 12790*ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali + 9516*ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin + 4308*ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali + 5872*ShipmentAmount_Port_of_Maputo_Port_of_Mersin + 5080*ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali + 1806*ShipmentAmount_Port_of_Marseille_Port_of_Mersin + 3576*ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali + 327*ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali + 3831*ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin + 9470*ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali + 6195*ShipmentAmount_Port_of_Montreal_Port_of_Mersin + 7505*ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali + 9424*ShipmentAmount_Port_of_Nagoya_Port_of_Mersin + 8918*ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali + 5617*ShipmentAmount_Port_of_New_York_Port_of_Mersin + 8290*ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali + 10095*ShipmentAmount_Port_of_Newcastle_Port_of_Mersin + 4885*ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali + 1552*ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin + 4703*ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali + 1370*ShipmentAmount_Port_of_Odessa_Port_of_Mersin + 7673*ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali + 10049*ShipmentAmount_Port_of_Oslo_Port_of_Mersin + 3980*ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali + 6356*ShipmentAmount_Port_of_Piraeus_Port_of_Mersin + 4584*ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali + 6961*ShipmentAmount_Port_of_Ploce_Port_of_Mersin + 10116*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali + 12508*ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin + 7697*ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali + 10204*ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin + 8269*ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali + 4994*ShipmentAmount_Port_of_Riga_Port_of_Mersin + 7029*ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali + 3755*ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin + 999*ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali + 2577*ShipmentAmount_Port_of_Salalah_Port_of_Mersin + 9407*ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali + 7528*ShipmentAmount_Port_of_Santos_Port_of_Mersin + 6627*ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali + 8546*ShipmentAmount_Port_of_Shanghai_Port_of_Mersin + 8532*ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali + 5258*ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin + 4405*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali + 6210*ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin + 9498*ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali + 6015*ShipmentAmount_Port_of_Tauranga_Port_of_Mersin + 8408*ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali + 9928*ShipmentAmount_Port_of_Tema_Port_of_Mersin + 10440*ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali + 12320*ShipmentAmount_Port_of_Vancouver_Port_of_Mersin + 7727*ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali + 9645*ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin + 0\n",
       "SUBJECT TO\n",
       "_C1: ShipmentAmount_Penang_Port_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Mersin\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin >= 275071343.7\n",
       "\n",
       "_C2: ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali >= 316298748.3\n",
       "\n",
       "_C3: ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin = 1750418.373\n",
       "\n",
       "_C4: ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Newcastle_Port_of_Mersin = 1108486.991\n",
       "\n",
       "_C5: ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hedland_Port_of_Mersin = 5259760.632\n",
       "\n",
       "_C6: ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Baku_Port_of_Mersin = 152870.6086\n",
       "\n",
       "_C7: ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin = 5846232.525\n",
       "\n",
       "_C8: ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Ploce_Port_of_Mersin = 583785.2387\n",
       "\n",
       "_C9: ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Santos_Port_of_Mersin = 2405044.613\n",
       "\n",
       "_C10: ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Douala_Port_of_Mersin = 286578.9516\n",
       "\n",
       "_C11: ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Montreal_Port_of_Mersin = 7130120.719\n",
       "\n",
       "_C12: ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vancouver_Port_of_Mersin = 2122464.834\n",
       "\n",
       "_C13: ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Shanghai_Port_of_Mersin = 267850261.2\n",
       "\n",
       "_C14: ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Alexandria_Port_of_Mersin = 1178963.884\n",
       "\n",
       "_C15: ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Marseille_Port_of_Mersin = 2903970.469\n",
       "\n",
       "_C16: ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin = 2541200.847\n",
       "\n",
       "_C17: ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tema_Port_of_Mersin = 159171.9705\n",
       "\n",
       "_C18: ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Piraeus_Port_of_Mersin = 662387.6583\n",
       "\n",
       "_C19: ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Budapest_Port_of_Mersin = 7691376.454\n",
       "\n",
       "_C20: ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin = 56655403.55\n",
       "\n",
       "_C21: ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin = 5188197.412\n",
       "\n",
       "_C22: ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin = 137744624.1\n",
       "\n",
       "_C23: ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin = 1888157.9\n",
       "\n",
       "_C24: ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin = 28443.63952\n",
       "\n",
       "_C25: ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Nagoya_Port_of_Mersin = 724801.9126\n",
       "\n",
       "_C26: ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Aktau_Port_of_Mersin = 1052630.169\n",
       "\n",
       "_C27: ShipmentAmount_Penang_Port_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Penang_Port_Port_of_Mersin = 1883968.768\n",
       "\n",
       "_C28: ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin = 110143.3931\n",
       "\n",
       "_C29: ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Belgrade_Port_of_Mersin = 380422.1379\n",
       "\n",
       "_C30: ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Maputo_Port_of_Mersin = 8080791.105\n",
       "\n",
       "_C31: ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin = 964428.5326\n",
       "\n",
       "_C32: ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Tauranga_Port_of_Mersin = 1312543.345\n",
       "\n",
       "_C33: ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Lagos_Port_of_Mersin = 71076.45981\n",
       "\n",
       "_C34: ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Oslo_Port_of_Mersin = 5162036.898\n",
       "\n",
       "_C35: ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Salalah_Port_of_Mersin = 1900360.293\n",
       "\n",
       "_C36: ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gdansk_Port_of_Mersin = 148867.4242\n",
       "\n",
       "_C37: ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Doha_Port_of_Mersin = 2820733.861\n",
       "\n",
       "_C38: ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Constanta_Port_of_Mersin = 1017712.828\n",
       "\n",
       "_C39: ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin = 7634624.871\n",
       "\n",
       "_C40: ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin = 3723801.549\n",
       "\n",
       "_C41: ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin = 3766639.035\n",
       "\n",
       "_C42: ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Bratislava_Port_of_Mersin = 1121081.872\n",
       "\n",
       "_C43: ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Koper_Port_of_Mersin = 351723.7786\n",
       "\n",
       "_C44: ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Durban_Port_of_Mersin = 2886609.143\n",
       "\n",
       "_C45: ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Algeciras_Port_of_Mersin = 1384623.344\n",
       "\n",
       "_C46: ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin = 533795.8943\n",
       "\n",
       "_C47: ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Basel_Port_of_Mersin = 105019.7955\n",
       "\n",
       "_C48: ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Riga_Port_of_Mersin = 5143227.069\n",
       "\n",
       "_C49: ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Mersin_Port_of_Mersin = 237073.6777\n",
       "\n",
       "_C50: ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Odessa_Port_of_Mersin = 299230.0617\n",
       "\n",
       "_C51: ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin = 26856798.65\n",
       "\n",
       "_C52: ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Immingham_Port_of_Mersin = 0\n",
       "\n",
       "_C53: ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_New_York_Port_of_Mersin = 0\n",
       "\n",
       "_C54: ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin = 0\n",
       "\n",
       "_C55: ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali\n",
       " + ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin = 557404.5143\n",
       "\n",
       "VARIABLES\n",
       "ShipmentAmount_Penang_Port_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Penang_Port_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Aktau_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Alexandria_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Algeciras_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Baku_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Basel_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Belgrade_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Bratislava_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Budapest_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Constanta_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Doha_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Douala_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Durban_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gdansk_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Hedland_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Immingham_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Koper_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Lagos_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Los_Angeles_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Maputo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Marseille_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mersin_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Mina_Salman_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Montreal_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Nagoya_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_New_York_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Newcastle_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Odessa_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Oslo_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Piraeus_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Ploce_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Reykjavik_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Riga_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Salalah_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Santos_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Shanghai_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tauranga_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Tema_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vancouver_Port_of_Mersin Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Jebel_Ali Continuous\n",
       "ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin Continuous"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# Constraints\n",
    "for i in supply_points:\n",
    "    prob += sum(X[i][j] for j in demand_points) == aluminium_supply[i]\n",
    "prob"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Status: Optimal\n",
      "ShipmentAmount_Penang_Port_Port_of_Mersin = 1883968.8\n",
      "ShipmentAmount_Port_of_Aktau_Port_of_Mersin = 1052630.2\n",
      "ShipmentAmount_Port_of_Alexandria_Port_of_Mersin = 1178963.9\n",
      "ShipmentAmount_Port_of_Algeciras_Port_of_Mersin = 1384623.3\n",
      "ShipmentAmount_Port_of_Baku_Port_of_Mersin = 152870.61\n",
      "ShipmentAmount_Port_of_Bandar_Abbas_Port_of_Jebel_Ali = 1888157.9\n",
      "ShipmentAmount_Port_of_Basel_Port_of_Mersin = 105019.8\n",
      "ShipmentAmount_Port_of_Belgrade_Port_of_Mersin = 380422.14\n",
      "ShipmentAmount_Port_of_Bratislava_Port_of_Mersin = 1121081.9\n",
      "ShipmentAmount_Port_of_Budapest_Port_of_Mersin = 7691376.5\n",
      "ShipmentAmount_Port_of_Buenos_Aires_Port_of_Mersin = 1750418.4\n",
      "ShipmentAmount_Port_of_Constanta_Port_of_Jebel_Ali = 1017712.8\n",
      "ShipmentAmount_Port_of_Doha_Port_of_Jebel_Ali = 2820733.9\n",
      "ShipmentAmount_Port_of_Douala_Port_of_Mersin = 286578.95\n",
      "ShipmentAmount_Port_of_Durban_Port_of_Mersin = 2886609.1\n",
      "ShipmentAmount_Port_of_Gdansk_Port_of_Mersin = 148867.42\n",
      "ShipmentAmount_Port_of_Gioia_Tauro_Port_of_Mersin = 28443.64\n",
      "ShipmentAmount_Port_of_Gothenburg_Port_of_Mersin = 533795.89\n",
      "ShipmentAmount_Port_of_Hamburg_Germany_Port_of_Mersin = 2541200.8\n",
      "ShipmentAmount_Port_of_Hedland_Port_of_Mersin = 5259760.6\n",
      "ShipmentAmount_Port_of_Jawaharlal_Nehru_Port_of_Jebel_Ali = 5188197.4\n",
      "ShipmentAmount_Port_of_Jebel_Ali_Port_of_Jebel_Ali = 26856799.0\n",
      "ShipmentAmount_Port_of_Koper_Port_of_Jebel_Ali = 351723.78\n",
      "ShipmentAmount_Port_of_Lagos_Port_of_Mersin = 71076.46\n",
      "ShipmentAmount_Port_of_Manzanillo_Port_of_Mersin = 110143.39\n",
      "ShipmentAmount_Port_of_Maputo_Port_of_Mersin = 8080791.1\n",
      "ShipmentAmount_Port_of_Marseille_Port_of_Mersin = 2903970.5\n",
      "ShipmentAmount_Port_of_Mersin_Port_of_Mersin = 237073.68\n",
      "ShipmentAmount_Port_of_Mina_Salman_Port_of_Jebel_Ali = 5846232.5\n",
      "ShipmentAmount_Port_of_Montreal_Port_of_Mersin = 7130120.7\n",
      "ShipmentAmount_Port_of_Nagoya_Port_of_Mersin = 724801.91\n",
      "ShipmentAmount_Port_of_Newcastle_Port_of_Mersin = 1108487.0\n",
      "ShipmentAmount_Port_of_Novorossiysk_Port_of_Mersin = 3723801.5\n",
      "ShipmentAmount_Port_of_Odessa_Port_of_Mersin = 299230.06\n",
      "ShipmentAmount_Port_of_Oslo_Port_of_Jebel_Ali = 5162036.9\n",
      "ShipmentAmount_Port_of_Piraeus_Port_of_Jebel_Ali = 662387.66\n",
      "ShipmentAmount_Port_of_Ploce_Port_of_Jebel_Ali = 583785.24\n",
      "ShipmentAmount_Port_of_Puerto_Cabello_Port_of_Jebel_Ali = 557404.51\n",
      "ShipmentAmount_Port_of_Reykjavik_Port_of_Jebel_Ali = 56655404.0\n",
      "ShipmentAmount_Port_of_Riga_Port_of_Mersin = 5143227.1\n",
      "ShipmentAmount_Port_of_Rotterdam_Port_of_Mersin = 964428.53\n",
      "ShipmentAmount_Port_of_Salalah_Port_of_Mersin = 1900360.3\n",
      "ShipmentAmount_Port_of_Santos_Port_of_Mersin = 2405044.6\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Jebel_Ali = 208708170.0\n",
      "ShipmentAmount_Port_of_Shanghai_Port_of_Mersin = 59142087.0\n",
      "ShipmentAmount_Port_of_St._Petersburg_Port_of_Mersin = 3766639.0\n",
      "ShipmentAmount_Port_of_Tanjung_Priok_Port_of_Mersin = 137744620.0\n",
      "ShipmentAmount_Port_of_Tauranga_Port_of_Mersin = 1312543.3\n",
      "ShipmentAmount_Port_of_Tema_Port_of_Mersin = 159171.97\n",
      "ShipmentAmount_Port_of_Vancouver_Port_of_Mersin = 2122464.8\n",
      "ShipmentAmount_Port_of_Vladivostok_Port_of_Mersin = 7634624.9\n",
      "Total kilogram_miles = 3673949726490.2407\n"
     ]
    }
   ],
   "source": [
    "prob.solve()\n",
    "\n",
    "print(\"Status:\", LpStatus[prob.status])\n",
    "\n",
    "for v in prob.variables():\n",
    "    if v.varValue > 0:\n",
    "        print(v.name, \"=\", v.varValue)\n",
    "\n",
    "print(\"Total kilogram_miles =\", value(prob.objective))\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
